#ifndef		__WINDOWWARNING__
#define		__WINDOWWARNING__

#include	<ncurses.h>
#include	<list>

#include	"ObjectContain.hpp"
#include	"AWindow.hpp"
#include	"AColor.hpp"
#include	"ContentFile.hpp"
#include	"ScrollText.hpp"

class	WindowWarning : public AWindow, AColor
{
public:
  WindowWarning(unsigned int heightWinCode, unsigned int widthWinCode);
  ~WindowWarning();
  void		setContentWin(const char *name_file, unsigned int size);
  virtual void	update(bool focus);
  virtual void	checkEvent(int event);

private:
  std::list<std::string> getListWarningInLine(unsigned int line);

private:
  ContentFile	*_fileTree;
  ScrollText	*_scrollText;
  int		_line;
  std::list<ObjectContain *>	_listContain;
};

#endif
